{	Problem: http://codeforces.ru/problemset/problem/46/A
	Verdict: Accepted

}
var i,n,d,cur:integer;
begin
readln(n);
d:=0;
cur:=1;
for i:=1 to n-1 do begin
  inc(cur,i);
  write((cur-1) mod n+1,' ');
end;
readln;
end.